package com.mybank.bo.impl;

import com.mybank.dao.ClienteDao;
import com.mybank.bo.ClienteBo;
import com.mybank.bo.exception.ClienteNulo;
import com.mybank.domain.Cliente;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author mjcali
 */
@Service
public class ClienteBoImpl implements ClienteBo {

    @Autowired
    private ClienteDao clienteDao;

    public ClienteDao getClienteDao() {
        return clienteDao;
    }

    public void setClienteDao(ClienteDao clienteDao) {
        this.clienteDao = clienteDao;
    }

    @Override
    public Cliente buscarCliente(String idCliente) throws ClienteNulo {
        return clienteDao.buscarCliente(idCliente);
    }
}
